<? // include('inc.ajax_autocompletion.php'); ?>
<table>
<tr align="center" valign="middle">
		  <td width="19" rowspan="2" bgcolor="#EEEEEE"><input name="add_q" type="text" id="add_q" size="2" maxlength="5" autocomplete="off"></td>
				<td width="28" align="right" bgcolor="#EEEEEE"><input id="type_ajout_1" type="radio" name="type_ajout" value="1" /></td>
				<td align="left" bgcolor="#EEEEEE"><? mk_list_table("add_descr","","SELECT nom_court, id FROM inventaire_description WHERE active=1 ORDER BY ordre", "id", "nom_court", $db, TRUE); ?>				</td>
				<td colspan=2 rowspan="2" bgcolor="#EEEEEE"><input name="add_prix" type="text" id="add_prix" value="<? print $somme_default ?>" size="6" maxlength="9" autocomplete="off" onfocus="document.getElementById('prix_auto').checked=false">
        						<br>
                                <input name="prix_auto" type="checkbox" id="prix_auto" value="1" checked>						
          Auto</td>
	<td colspan=2 rowspan="2" bgcolor="#EEEEEE"><input name="add_coef" type="text" id="add_coef" value="<? echo (float)$ligne_look_fiche_loc['coef']; ?>" size="3" maxlength="9" autocomplete="off">
			    <br />
			    coef.</td>
  </tr>
		
	<tr>
				<td align="right" valign="middle" bgcolor="#EEEEEE"><input id="type_ajout_3" type="radio" name="type_ajout" value="3"></td>
	  <td align="left" valign="middle" bgcolor="#EEEEEE"><? mk_list_table("add_cat",$cat_default,"SELECT id, nom FROM inventaire_categorie ORDER BY ordre", "id", "nom", $db, TRUE);  ?>
				  <? mk_list_table("add_typ",$type_default,"SELECT id, nom FROM inventaire_type ORDER BY ordre", "id", "nom", $db, TRUE);  ?>
				  <br>
	    <input name="add_other" value="<?= $add_other_default; ?>" type="text" id="add_other" size="35" maxlength="100"  onfocus="document.getElementById('type_ajout_3').checked=true">
        <br />
                  <input name="sous_traitance" type="checkbox" id="sous_traitance" value="1">
	    sous-traitance
	    <input name="separateur" type="checkbox" id="separateur" value="1" /> 
	    séparateur</td>
		</tr>
    
        </table>
